package com.hlg.xboot.event;

import org.springframework.context.ApplicationEvent;


/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company: HLG</p>
 * <p>Site: www.hlgroup.com</p>
 *
 * @author tianze
 * @version 1.0
 * @date 2016/07/09
 */
public class BaseEvent<E, S> extends ApplicationEvent {

    protected Long id;

    protected Object value;

    protected E event;

    protected S service;

    public BaseEvent(Object source, E event, S service, Long id, Object value) {
        super(source);
        this.event = event;
        this.service = service;
        this.id = id;
        this.value = value;
    }

    public void handleEvent(){

    };

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public E getEvent() {
        return event;
    }

    public void setEvent(E event) {
        this.event = event;
    }

    public S getService() {
        return service;
    }

    public void setService(S service) {
        this.service = service;
    }
}
